﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master"Inherits="System.Web.Mvc.ViewPage<TTSoft.MyWeb.Models.ViewModels.GroupViewModel>" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SelectThuoc
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent1" runat="server">
	<span class="AdminTitle" style="color:#cc0000;">Thuoc Management</span>
	(<a href="<%= Url.Action("Index", "Home") %>" class="AdminPageText">
	<%= WebConfiguration.SiteName  %>
	</a>|
    <a href="<%= Url.Action("LogOff", "Account")%>" class="AdminPageText">
	    Đăng xuất
	</a>|
    <a href="<%= Url.Action("ChangePassword", "Account")%>" class="AdminPageText">
	    Thay đổi mật khẩu
	</a>)
	<br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent2" runat="server">
	<script type="text/javascript">
		$(document).ready(function () {
			$("#Thuoc_NgaySanXuat").datepicker();
		});
		<% if (Model.ThuocModel.InfoText != null && Model.ThuocModel.InfoText != ""){ %>
			alert('<%= Model.ThuocModel.InfoText %>');
		<% } %>
	</script>
	<div id="PartialDiv">
		<% Html.RenderPartial("Templates/TH_ListThuoc", Model); %>
	</div>
	<% using (Html.BeginForm("InsertThuoc", "Admin", FormMethod.Post, new { enctype = "multipart/form-data", onsubmit = "return ValidateThuoc();" }))
	{ %>
		<input type="hidden" name="Thuoc_IDLoaiThuoc" value="<%= Model.ThuocModel.ReferKeys.IDLoaiThuoc %>" />
		<div style="padding-top: 40px">
			<span style="font-size:18px; font-weight:bold;">Nhập thuốc</span>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="AdminPageText">
				<tbody>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">TenThuoc: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("Thuoc_TenThuoc", "", new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">HamLuong: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("Thuoc_HamLuong", "", new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">DonViTinh: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("Thuoc_DonViTinh", "", new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">NuocSanXuat: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("Thuoc_NuocSanXuat", "", new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">HanDung: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("Thuoc_HanDung", "", new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">NgaySanXuat: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("Thuoc_NgaySanXuat", "", new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">SoLuong: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("Thuoc_SoLuong", "", new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">DonGia: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("Thuoc_DonGia", "", new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">BHYT: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<%= Html.TextBox("Thuoc_BHYT", "", new { @style = "width: 290px;" })%>
							</div>
						</td>
					</tr>
					<tr>
						<td>
							<div align="left" style="padding-top:15px">
								<font class="normal8">HinhAnh: </font>
							</div>
						</td>
						<td height="20">
							<div align="left" style="padding-top:15px">
								<input type="file" name="Thuoc_HinhAnh" />
							</div>
						</td>
					</tr>
					<tr>
						<td height="20" style="width: 130px">
						</td>
						<td height="20">
							<div align="left">
								<br/>
								<p>
									<input type="submit" value="Add New" />
								</p>
							</div>
						</td>
					</tr>
				</tbody>
			</table>
		</div>
	<% } %>
</asp:Content>
